package org.hzero.oauth.api.contoller.v1;


import io.swagger.annotations.ApiOperation;
import org.hzero.oauth.utils.JwtGenerator;
import org.hzero.oauth.utils.JwtUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JwtGeneratorTokenController {
    @Autowired
    private JwtUtils jwtUtils;
    @ApiOperation("生成token")
    @RequestMapping("/public/generator")
    public String generator() {
        return jwtUtils.tokenGenerator();
    }
}
